package com.space.laboratory.provider.infrastructure.gatewayimpl.database.dao;

import com.space.laboratory.provider.infrastructure.gatewayimpl.database.dataobject.UserDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @since 2021-03-31
 */
public interface UserDao extends BaseMapper<UserDO> {
    @Select("SELECT id,name,age,email FROM user WHERE age=#{age}")
    UserDO selectByAge(Integer age);
}
